package demo;

public class Test {
    public static void main(String[] args) {
        Person p1 = new Person("张三", 20) ;
        Person p2 = new Person("张三", 20) ;
        int a = 10;
        int b = 10;
        System.out.println(a == b); // 输出true
        System.out.println(p1 == p2); // 输出false
        System.out.println(p1.equals(p2)); // 输出false
    }
}
